@extends('layouts.main')

@section('title')
Post
@endsection

@section('atas')

@endsection

@section('content')
<div class="well">
	<legend>
		Post
	</legend>
	<div class="row-fluid">
		<div class="span9">
			{{ Form::open(array('id' => 'cari','url' => 'admin/searchimage', 'method'=>'post', 'class'=>'form-horizontal'));}}
			<fieldset>
				<div class="row-fluid">
					<div class="span5">
						<div class="control-group">
							<div class="control-label">
								{{ Form::label('keyword', 'Keyword', array('class' => 'awesome'));}}
							</div>
							<div class="controls">
								{{ Form::text('key','',array('placeholder'=>'keyword'));}}
							</div>
						</div>
						<input name="page" class="page" type="hidden" value="1"/>
					</div>
					<div class="span5">
						<div class="control-group">
							<div class="control-label">
								{{ Form::label('type', 'Type', array('class' => 'awesome'));}}
							</div>
							<div class="controls">
								<select name="type">
									<option value="">-</option>
									<option value="face">Face</option>
									<option value="photo">Photo</option>
									<option value="clipart">Clipart</option>
									<option value="lineart">Lineart</option>
								</select>
							</div>
						</div>
						<div class="control-group">
							<div class="control-label">
								{{ Form::label('size', 'Size', array('class' => 'awesome'));}}
							</div>
							<div class="controls">
								<select name="size">
									<option value="">-</option>
									<option value="icon">Icon</option>
									<option value="small">Small</option>
									<option value="medium">Medium</option>
									<option value="large">Large</option>
									<option value="xlarge">Xlarge</option>
									<option value="xxlarge">XXlarge</option>
									<option value="huge">Huge</option>
								</select>
							</div>
						</div>
						<div class="control-group">
							<div class="control-label">
								{{ Form::label('filetype', 'File Type', array('class' => 'awesome'));}}
							</div>
							<div class="controls">
								<select name="filetype">
									<option value="">-</option>
									<option value="jpg">JPG</option>
									<option value="png">PNG</option>
									<option value="gif">GIF</option>
									<option value="bmp">BMP</option>
								</select>
							</div>
						</div>
						<div class="control-group">
							<div class="controls">
								{{ Form::submit('Search',array('class' => 'btn btn-success btnsrc'));}}
							</div>
						</div>
					</div>
				</div>
				<fieldset>
					{{ Form::close() }}
		</div>
		<div class="span3">
			<dl class="dl-horizontal">
				<dt class="span4 ">
					Status :
				</dt>
				<dd class="span4 status">
					<span class="label label-important">waiting</span></br>
				</dd>
				<dt class="span4">
					Grab :
				</dt>
				<dd class="span4 ajaxcount">
					0
				</dd>
			</dl>
		</div>

	</div>
	<div class="progress progress-striped active" style="display: none">
		<div class="bar" style="width: 0%;"></div>
	</div>

	<div id="result" class="row-fluid">

		<div class="span9">
			<legend class="legresult" style="display: none">
				Result
			</legend>

			<div class="row-fluid pagination" style="display: none">
				<div class="span1">
					<button class="btn prev">
						Prev
					</button>
				</div>
				<div class="span2 offset4">
					<center class="on">
						1
					</center>
				</div>
				<div class="span1 offset4">
					<button class="btn next">
						Next
					</button>
				</div>
			</div>
			<div class="row resultall">
				
			</div>
			<div class="grab" style="display: none">
				<button type="submit" class="dograb btn btn-success">
					GRAB!
				</button>
				<input type="checkbox" />
				Check all!
			</div>
		</div>

		<div id="log" class="span3">
			<legend class="leglog" style="display: none">
				Log
			</legend>
			<div class="logres"></div>
		</div>
	</div>

</div>
<div id="debug">

</div>

@endsection

@section('js')
{{HTML::script('assets/js/post.js')}}
@endsection